package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQueryParam;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VehicleMapper {
    List<VehicleVO> selectVehicle(VehicleQueryParam vehicleQuery);
    int insert(Vehicle vehicle);
    int deleteById(Long id);
    int update(Vehicle vehicle);
    int updateBindStatus (@Param("id") Long id,
                          @Param("bindStatus") String bindStatus,
                          @Param("geofenceId") Long geofenceId);
}
